<?php
namespace App\Admin\Actions\Grid;

use App\Admin\Forms\ZengJian;
use Dcat\Admin\Grid\Tools;
use Dcat\Admin\Widgets\Modal;

class ZengJianConfig1 extends Tools\AbstractTool
{
    /**
     * @return string
     */
	protected $title = '增/减量配置';


    public function render()
    {
        // 实例化表单类并传递自定义参数
        $form = ZengJian::make()/*->payload(['id' => $this->getKey()])*/;

        return Modal::make()
            ->size('500px')
            ->title($this->title)
            ->body($form)
            ->button('<a href="javascript:void(0)" class="btn btn-primary grid-refresh btn-mini"><i class="feather icon-plus"></i><span class="d-none d-sm-inline">&nbsp;&nbsp;'. $this->title .'</span></a>');
    }

}
